package com.vankimgps.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;

public class AboutUsActivity extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.about_us_layout);
	}
	
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_main, menu);
		
	    MenuInflater inflater = getMenuInflater();
	    inflater.inflate(R.menu.action_bar, menu);
		return true;
	}
	
	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
	    switch(item.getItemId())
	    {
	    case R.id.menu_tracking:{
			Intent intent = new Intent(this,TrackingActivity.class);				
			startActivity(intent);
			finish();
	    }
	        break;
	    case R.id.menu_finding:{
			Intent intent = new Intent(this,FindingActivity.class);				
			startActivity(intent);
			finish();
	    }
	        break;
	    case R.id.menu_settings:{
			Intent intent = new Intent(this,SettingsActivity.class);				
			startActivity(intent);
			finish();
	    }
	        break;
	    }
	    return true;
	}
}